import 'dart:ui';

class JmTextStyle {
  double? fontSize;
  Color? color;
  FontWeight? fontWeight;
  String? fontFamily;

  JmTextStyle({
    this.fontSize,
    this.color,
    this.fontWeight,
    this.fontFamily,
  });

  copyWith({
    double? fontSize,
    Color? color,
    FontWeight? fontWeight,
    String? fontFamily,
  }) {
    return JmTextStyle(
      fontSize: fontSize ?? this.fontSize,
      color: color ?? this.color,
      fontWeight: fontWeight ?? this.fontWeight,
      fontFamily: fontFamily ?? this.fontFamily,
    );
  }

  TextStyle toTextStyle() {
    return TextStyle(
      fontSize: fontSize,
      color: color,
      fontWeight: fontWeight,
      fontFamily: fontFamily,
    );
  }
}
